﻿using Dapper;
using EquipmentModule.Contracts;
using EquipmentModule.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace EquipmentModule.Services
{
    public class DashboardService : IDashboardService
    {
        public IEnumerable<RiverHistoryItem> Index(string dbStr = null)
        {
            var db = EquipmentModule.ConnCache.GetConn(dbStr);
            return db.Query<RiverHistoryItem>("SELECT * FROM Hd_RiverHistory");
        }
    }
}
